package cn.yujiago.activiti.mapper;

import cn.yujiago.activiti.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    /**
     * 根据用户名密码查询
     */
    User selectUserByUsernamePassword(@Param("username") String username, @Param("password") String password);

    /**
     * 根据ID查询
     */
    User selectUserById(@Param("id") Long id);
}
